import request from '@/utils/request.js'

export const reimApi={
	selectByUserId(reimQuery){
		return request.get(`/reim/selectByUserId`,{params:reimQuery})
	},
	selectByAdminId(reimQuery){
		return request.get('/reim/selectByAdminId',{params:reimQuery})
	},
	list(reimQuery){
		return request.get('/reim/list',{params:reimQuery})
	},
	deleteById(id) {
		return request.delete( `/reim/deleteById/${id}`)   //反引号，直接写参数。否则需要字符串拼接
	},
	deleteAll(ids) {
		return request.delete( `/reim/deleteAll/${ids}`)
	},
	add(reim) {
		//以JSON形式传递到后台
		return request.post('/reim/add',reim)
	},
	selectById(id) {
		return request.get(`/reim/selectById/${id}`)
	},
	update(reim) {
		return request.put('/reim/update', reim)
	},
	updateStatus(reim) {
		return request.put('/reim/updateAudit', reim)
	},
	selectAll(){
		return request.get('/reim/selectAll')
	},
	deleted(id){
		return request.delete(`/reim/deleted/${id}`)
	}
}


